package model;

/**
 * 发送账户的消息类
 */
public class UserMassage implements java.io.Serializable{
    private static final long serialVersionUID = -1795476338321167891L;
    // 实现序列化

    private String type;
    private User user;

    public UserMassage() {
    }
    public UserMassage(String type) {
        this.type = type;
    }
    public UserMassage(String type, User user) {
        this.type = type;
        this.user = user;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "UserMassage{" +
                "type='" + type + '\'' +
                ", user=" + user +
                '}';
    }
}
